package com.ihr360.oneclick.dao;

import com.ihr360.oneclick.dto.StaffRecordDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author tom
 * @date 17-12-20
 */
public interface StaffRecordDao extends JpaRepository<StaffRecordDto, String>, JpaSpecificationExecutor<StaffRecordDto> {

    StaffRecordDto findByCompanyIdAndId(String companyId, String id);

    List<StaffRecordDto> findByCompanyId(String companyId);

    List<StaffRecordDto> findByCompanyIdAndIdIn(String companyId, List<String> idList);

    StaffRecordDto findByCompanyIdAndMobileNo(String companyId, String mobileNo);

    List<StaffRecordDto> findByIdIn(List<String> idList);

}
